#include <iostream>

class Player
{
public:
    int x,y;
    int speed;
    void Move(int xa, int ya)
    {
        x += xa * speed;
        y += ya * speed;
    }
};

struct Vec2
{
    float x,y;
    void Add(const Vec2& other)
    {
        x += other.x;
        y += other.y;
    }
};

int main()
{
    Player candy;
    candy.Move(1,1);
}